package com.spy.material.service;

import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
import com.spy.material.domain.InventoryDetail;
import com.spy.material.dto.InventoryDetailQueryDTO;
import com.spy.material.vo.InventoryDetailPageVO;

/**
 * 库存明细Service接口
 *
 * @author twc
 * @date 2025-11-09
 */
public interface IInventoryDetailService extends IService<InventoryDetail>
{
    /**
     * 查询库存明细
     *
     * @param id 库存明细主键
     * @return 库存明细
     */
    public InventoryDetail selectInventoryDetailById(Long id);

    /**
     * 查询库存明细列表
     *
     * @param inventoryDetail 库存明细
     * @return 库存明细集合
     */
    public List<InventoryDetail> selectInventoryDetailList(InventoryDetail inventoryDetail);

    /**
     * 新增库存明细
     *
     * @param inventoryDetail 库存明细
     * @return 结果
     */
    public int insertInventoryDetail(InventoryDetail inventoryDetail);

    /**
     * 修改库存明细
     *
     * @param inventoryDetail 库存明细
     * @return 结果
     */
    public int updateInventoryDetail(InventoryDetail inventoryDetail);

    /**
     * 批量删除库存明细
     *
     * @param ids 需要删除的库存明细主键集合
     * @return 结果
     */
    public int deleteInventoryDetailByIds(Long[] ids);

    /**
     * 删除库存明细信息
     *
     * @param id 库存明细主键
     * @return 结果
     */
    public int deleteInventoryDetailById(Long id);

    InventoryDetailPageVO all(InventoryDetailQueryDTO inventoryDetailQueryDTO);
}